package com.credithc.fastdfs.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.credithc.fastdfs.api.entity.Alarm;
import com.credithc.framework.core.mybatis.page.PageController;

public interface AlarmMapper {
	/**
	 * @Title: selectAlarmList
	 * @Description: 条件查询告警列表
	 * @param
	 * @return List<FdfsInfo>
	 * @throws
	 */
	List<Alarm> selectAlarmList(@Param("page") PageController page, @Param("alarm") Alarm alarm);

	/**
	 * @Title: addAlarm
	 * @Description: 添加告警
	 * @param
	 * @return int
	 * @throws
	 */
	int addAlarm(@Param("alarm") Alarm alarm);

	/**
	 * @Title: getAlarmBySysId
	 * @Description: 通过ID获取告警信息
	 * @param
	 * @return Alarm
	 * @throws
	 */
	Alarm getAlarmBySysId(@Param("alarmId") String alarmId);
	
	/** 
	 * @Title: editAlarm 
	 * @Description: 修改告警信息
	 * @param 
	 * @return int
	 * @throws 
	 */ 
	int editAlarm(@Param("alarm") Alarm alarm);
	
	/** 
	 * @Title: delSysParam 
	 * @Description: 删除系统参数 
	 * @param 
	 * @return int
	 * @throws 
	 */ 
	int delAlarm(@Param("alarmId") String alarmId);
	
	/** 
	 * @Title: selectValidAlarmList 
	 * @Description: 查询有效的告警
	 * @param 
	 * @return List<Alarm>
	 * @throws 
	 */ 
	List<Alarm> selectValidAlarmList();
	
	/** 
	 * @Title: updateAlarmLastAlertTime 
	 * @Description: 修改最后提醒时间
	 * @param 
	 * @return int
	 * @throws 
	 */ 
	int updateAlarmLastAlertTime(@Param("alarm") Alarm alarm);
}